package com.lingshu.core.eventbus;

/**
 * @author 于定金
 * @version 1.0
 * @Date 2024/4/12 9:34
 * @Description
 */

/**
 * 传递的数据 统一格式
 * @param <T> 数据类型
 */
public class EventData<T> {
    private EventKey key;
    private T value;

    public EventData(EventKey key, T value) {
        this.key = key;
        this.value = value;
    }

    public EventKey getKey() {
        return key;
    }

    public T getValue() {
        return value;
    }
}
